package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.ter.TerAttrExDao;
import com.tbit.uqbike.client.pojo.TerAttrEx;
import com.tbit.uqbike.client.service.TerAttrExService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 15:46 2022/10/19
 */
@Service
public class TerAttrExServiceImpl implements TerAttrExService {

    @Autowired
    private TerAttrExDao terAttrExDao;

    @Override
    public TerAttrEx getByMachineNO(String machineNO, String name) {
        Map<String, Object> attrMap = new HashMap<>();
        attrMap.put("machineNO", machineNO);
        attrMap.put("name", name);
        return terAttrExDao.getByMachineNO(attrMap);
    }
}
